package cn.growthgate.fgo.entity.vo;

import java.util.Date;
import java.util.List;

import cn.growthgate.fgo.common.base.BaseVo;
import cn.growthgate.fgo.entity.User;
import cn.growthgate.fgo.entity.enums.Role;
import cn.growthgate.fgo.entity.enums.UserClient;
import cn.growthgate.fgo.entity.enums.Sex;
import cn.growthgate.fgo.entity.enums.UserStatus;

public class UserVo extends BaseVo<User> {

	/**
	 * 主键id
	 */
	private Long id;

	/**
	 * 头像
	 */
	private String avatar;

	/**
	 * 用户名
	 */
	private String username;

	/**
	 * 昵称
	 */
	private String name;

	/**
	 * 性别
	 */
	private Sex sex;

	/**
	 * 客户端
	 */
	private UserClient client;

	/**
	 * py码
	 */
	private String pyCode;

	/**
	 * 状态
	 */
	private UserStatus status;

	/**
	 * 添加时间
	 */
	private Date addtime;

	/**
	 * 最后登录时间
	 */
	private Date lastLoginTime;
	
	/**
	 * 角色
	 */
	private List<Role> roles;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Sex getSex() {
		return sex;
	}

	public void setSex(Sex sex) {
		this.sex = sex;
	}

	public UserClient getClient() {
		return client;
	}

	public void setClient(UserClient client) {
		this.client = client;
	}

	public String getPyCode() {
		return pyCode;
	}

	public void setPyCode(String pyCode) {
		this.pyCode = pyCode;
	}

	public UserStatus getStatus() {
		return status;
	}

	public void setStatus(UserStatus status) {
		this.status = status;
	}

	public Date getAddtime() {
		return addtime;
	}

	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	public Date getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public List<Role> getRoles() {
		return roles;
	}

	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}

}
